package com.xxx.web;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.time.Instant;

@SpringBootApplication(scanBasePackages = "com.xxx.web", exclude = {SqlInitializationAutoConfiguration.class})
@EnableTransactionManagement
@MapperScan("com.xxx.web.mapper")
@Slf4j
@EnableCaching
@EnableScheduling
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info("Application started");
        log.info("Application started at: {}", Instant.now());
        log.info("Application started by: {}", System.getProperty("user.name"));
    }
}
